package com.mk.controller;

import com.mk.service.DemoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@Slf4j
public class DemoController {

    @Resource
    private DemoService demoService;

    @RequestMapping("/demo")
    public String demo(){
        String result = demoService.getName("userId");
        log.info("get result from provider[demoService] is {}",result);
        return result;
}
}
